import { useReducer } from "react";
import reducer from "./reducer"
const MyUseReducer = (props) => {
  const [state, dispatch] = useReducer(reducer, { count: 0 })
  return (
    <>
      <h2>MuUseReducer子组件： count: {state.count}</h2>
    </>
  );
}

export default MyUseReducer